package com.gxa.hualian.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author litangjiang
 * @Date 2022/5/11 14:05
 * @Version 1.8
 */
public class Coupon implements Serializable {
    private Integer id;
    private String name;
    private String desc;
    private String img;
    private String role;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date collectExp;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date usedExp;
    private Boolean inUsed;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Date getCollectExp() {
        return collectExp;
    }

    public void setCollectExp(Date collectExp) {
        this.collectExp = collectExp;
    }

    public Date getUsedExp() {
        return usedExp;
    }

    public void setUsedExp(Date usedExp) {
        this.usedExp = usedExp;
    }

    public Boolean getInUsed() {
        return inUsed;
    }

    public void setInUsed(Boolean inUsed) {
        this.inUsed = inUsed;
    }

    @Override
    public String toString() {
        return "Coupon{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", img='" + img + '\'' +
                ", role='" + role + '\'' +
                ", collectExp=" + collectExp +
                ", usedExp=" + usedExp +
                ", inUsed=" + inUsed +
                '}';
    }

    public Coupon() {
    }

    public Coupon(Integer id, String name, String desc, String img, String role, Date collectExp, Date usedExp, Boolean inUsed) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.img = img;
        this.role = role;
        this.collectExp = collectExp;
        this.usedExp = usedExp;
        this.inUsed = inUsed;
    }
}